package com.wjqy.service.impl;

import com.wjqy.entity.Item;
import com.wjqy.mapper.ItemMapper;
import com.wjqy.service.ItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ItemServiceImpl implements ItemService {

    @Autowired
    private ItemMapper itemMapper;

    public List<Item> findAllItem() {
        List<Item> allItems = itemMapper.findAllItems();
        return allItems;
    }
}
